Skip to content

Use Rustler Precompiled#9

Open
scrogson wants to merge 5 commits intoThomas-Jean:masterfrom
royal-markets:main
Open

Use Rustler Precompiled#9
scrogson wants to merge 5 commits intoThomas-Jean:masterfrom
royal-markets:main

Conversation

@scrogson
Copy link
Copy Markdown

@scrogson scrogson commented Dec 3, 2024

As requested by @juulSme here

@juulSme juulSme self-requested a review December 3, 2024 22:24
@gregors gregors self-requested a review December 28, 2024 17:40
Copy link
Copy Markdown
Collaborator

@gregors gregors left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very excited to get this in. But I have some questions regarding the removal of the publishing step. We also probably want to make sure elixir 1.13 is still covered. I also suggest using a v1.1.0 version for this since it's is in effect an addition and not a bug.

Happy to help move this along.

Comment thread .github/workflows/ci.yml
- pair:
elixir: 1.15.6
otp: 26.1
lint: lint
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we're missing elixir 1.13 in this build

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and might want to add a few more recent ones

with:
files: |
${{ steps.build-crate.outputs.file-path }}
if: startsWith(github.ref, 'refs/tags/')
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We've mistakenly removed doc creation and hex publishing, unless I'm missing how this works. Probably need to bring that back unless the idea is that hex publishing becomes some sort of manual process.

Comment thread mix.exs
use Mix.Project

@source_url "https://github.com/Thomas-Jean/blake3"
@version "1.0.3"
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think there's enough changing in this that "1.1.0" is warranted

Comment thread .github/workflows/ci.yml

- name: Check unused deps
run: mix deps.unlock --check-unused
if: ${{ matrix.lint }}
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

curious about the conditional lint, is the goal only to check the most recent pair?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This just allows you to turn off linting for a specific pair if desired.

target: ${{ matrix.job.target }}
nif-version: ${{ matrix.nif }}
use-cross: ${{ matrix.job.use-cross }}
cross-version: ${{ matrix.job.cross-version || 'v0.2.4' }}
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why the mix between v0.2.4 and v0.2.5?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't recall. I pretty much always end up copy/pasting my CI configs and probably need to revisit.

@scrogson
Copy link
Copy Markdown
Author

scrogson commented Jan 2, 2025

But I have some questions regarding the removal of the publishing step.

@gregors yes, makes sense. Essentially, this PR is pretty much exactly what I did in my fork in order to get something working for my own use-case. I haven't spent any time on automating hex publishing for any of my own packages, so I don't have any experience in department.

There is also a step which is required to run before you publish the package so that the checksum file is included in the published package. This has to be run after the artifacts have been built and uploaded on GitHub. Currently, I run this manually before publishing so that I can commit it into the repo so it can be used outside of hex like I'm doing.

We also probably want to make sure elixir 1.13 is still covered. I also suggest using a v1.1.0 version for this since it's is in effect an addition and not a bug.

@gregors sounds good.

I don't have a lot of time to run down all these changes at the moment. Feel free to close this, amend changes, or what ever you prefer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants